package com.kingtao.message;

import lombok.Data;

/**
 * @Author: kingtao
 * @Date: 2023-08-23-15:33
 * @Description:
 */
@Data
public class HeartBeatResponse extends Message{
    boolean leaderSuccess;

    boolean secondLeaderSuccess;

    public HeartBeatResponse(boolean leaderSuccess, boolean secondLeaderSuccess) {
        this.leaderSuccess = leaderSuccess;
        this.secondLeaderSuccess = secondLeaderSuccess;
    }

    public HeartBeatResponse() {
    }

    @Override
    public int getMessageType() {
        return 101;
    }
}
